package com.kaifamiao.www.demo.do0801.am;

public class Demo {
    public static void main(String[] args) {
        Pet pet = new Dog();
        pet.eat();
        pet.play();
        pet.drink();

        Pet pet1 = new Cat();
        pet1.drink();
        pet1.play();
        pet1.eat();
    }

}
